glcontext-glx: Refactor realize function
authorPablo Correa Gómez <ablocorrea@hotmail.com>
Mon, 30 May 2022 19:11:28 +0000 (21:11 +0200)
committerPablo Correa Gómez <ablocorrea@hotmail.com>
Sat, 4 Jun 2022 18:48:40 +0000 (20:48 +0200)
commitf97cff14541d0d24637a2971db1589e707baaedf
tree7271d09e3d3f4d36500984ddcf4c36cca9a6c640
parent549a2b4c866e988b791244ca5d67d16bdbf5e006
glcontext-glx: Refactor realize function

Mimic the behavior of the egl context creation by stablishing
some sane logic for the api and version used. Split the decision
of the type of context (api, legacy) and the creation of a context
of a certain version and all its properties.
gdk/x11/gdkglcontext-glx.c